import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    baseUrl:'https://xf.yywuyu.xyz',
    detailId:'-1',
    navList:[]
  },
  mutations: {
    setNavList(state,data){
      state.navList = data
    }
  },
  actions: {
    toSetNavList(context,data){
      context.commit('setNavList',data)
    }
  },
  modules: {},
});
